<?php
require_once APPPATH.'controllers/application'.EXT;

class Main extends Application{
    function __construct() {
        parent::__construct();
    }
    
    function index(){
        $data = array();
        
        $this->titlePage = 'shop dien hoa';
        $this->meteKey = 'shop dien hoa';
        $data['product_new'] = $this->product_model->getProductNew()->result();
        $data['pdBestSell'] = $this->product_model->getProductBS()->result();
        
        $this->render($this->load->view('home_view',$data,true));
    }
    
}
?>
